package com.example.demo.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author zhengmf
 * @Date 2019/1/2  16:05
 */
@Table
@Entity(name = "SM_FEEDBACK_TBL")
@ApiModel("反馈实体")
public class Feedback implements Serializable {
    private static final long serialVersionUID = -1453076026224288357L;
    @Id
    @SequenceGenerator(name = "FEEDBACK_SEQ", sequenceName = "S_SM_FEEDBACK", allocationSize = 1)
    @GeneratedValue(strategy = GenerationType.AUTO, generator = "FEEDBACK_SEQ")
    @ApiModelProperty("反馈ID")
    @Column(name = "ID")
    private Long id;

    @ApiModelProperty("反馈标题")
    @Column(name = "TITLE",updatable = false)
    private String title;

    @ApiModelProperty("反馈内容")
    @Column(name = "CONTENT",updatable = false)
    private String content;

    @ApiModelProperty("反馈人")
    @Column(name = "CREATE_NAME",updatable = false)
    private String createName;

    @ApiModelProperty("反馈时间")
    @Column(name = "CREATE_TIME",updatable = false)
    private Date createTime;

    @ApiModelProperty("回复内容")
    @Column(name = "REPLY_CONTENT")
    private String replyContent;

    @ApiModelProperty("回复人")
    @Column(name = "REPLY_NAME")
    private String replyName;

    @ApiModelProperty("回复时间")
    @Column(name = "REPLY_TIME")
    private Date replyTime;

    @ApiModelProperty("是否已读：'N'未读,'Y'已读")
    @Column(name = "IS_READ")
    private String isRead;

    @ApiModelProperty("状态：E：可用, T：停用, D：删除")
    @Column(name = "STATUS")
    private String status;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getReplyContent() {
        return replyContent;
    }

    public void setReplyContent(String replyContent) {
        this.replyContent = replyContent;
    }

    public String getReplyName() {
        return replyName;
    }

    public void setReplyName(String replyName) {
        this.replyName = replyName;
    }

    public Date getReplyTime() {
        return replyTime;
    }

    public void setReplyTime(Date replyTime) {
        this.replyTime = replyTime;
    }

    public String getIsRead() {
        return isRead;
    }

    public void setIsRead(String isRead) {
        this.isRead = isRead;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Feedback{" +
            "id=" + id +
            ", title='" + title + '\'' +
            ", content='" + content + '\'' +
            ", createName='" + createName + '\'' +
            ", createTime=" + createTime +
            ", replyContent='" + replyContent + '\'' +
            ", replyName='" + replyName + '\'' +
            ", replyTime=" + replyTime +
            ", read='" + isRead + '\'' +
            ", status='" + status + '\'' +
            '}';
    }
}
